package khannedy.blogging.masterdetail.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Mahasiswa implements Serializable {

    public static enum JenisKelamin {

	LakiLaki, Perempuan
    }
    
    private String nim;
    private String namaDepan;
    private String namaBelakang;
    private Date tanggalLahir;
    private JenisKelamin jenisKelamin;    
    private List<MataKuliah> mataKuliahs = new ArrayList<MataKuliah>();

    //Added by Jasoet [start]
    private String urlFoto;
    public String getUrlFoto() {
        return urlFoto;
    }

    public void setUrlFoto(String urlFoto) {
        this.urlFoto = urlFoto;
    }
    //Added by Jasoet [end]

    public boolean add(MataKuliah e) {
	return mataKuliahs.add(e);
    }

    public List<MataKuliah> getMataKuliahs() {
	return mataKuliahs;
    }

    public JenisKelamin getJenisKelamin() {
	return jenisKelamin;
    }

    public void setJenisKelamin(JenisKelamin jenisKelamin) {
	this.jenisKelamin = jenisKelamin;
    }

    public String getNamaBelakang() {
	return namaBelakang;
    }

    public void setNamaBelakang(String namaBelakang) {
	this.namaBelakang = namaBelakang;
    }

    public String getNamaDepan() {
	return namaDepan;
    }

    public void setNamaDepan(String namaDepan) {
	this.namaDepan = namaDepan;
    }

    public String getNim() {
	return nim;
    }

    public void setNim(String nim) {
	this.nim = nim;
    }

    public Date getTanggalLahir() {
	return tanggalLahir;
    }

    public void setTanggalLahir(Date tanggalLahir) {
	this.tanggalLahir = tanggalLahir;
    }
}
